<template>
	<view class="p20">
		<view class="p24 bg-fff radius20">
			<view class="pr tit-ac fs30 flex1">
				<text>充值金额</text>
			</view>
			<view class="flex border-b pt20 pb20">
				<view class="fs30">￥</view>
				<input placeholder="请输入充值金额" v-model="money" class="fs36" />
			</view>
			<view class="pt20 flex">
				<view class="color-999">账户余额：</view>
				<view class="color-zs flex1">{{$user.deposit||'0'}}</view>
			</view>
		</view>

		<view class="h120"></view>
		<view class="pf left0 bottom0 w-max p20 h120 z-index2">
			<u-button type="warning" class="w-max" @click="submit">充值</u-button>
		</view>
		<payment ref="pay" @success="$navBack(1,1000)" />
	</view>
</template>

<script>
	export default {
		data() {
			return {
				payData: '',
				money: '',

			};
		},
		onLoad() {},
		methods: {
			submit() {
				this.$refs.pay.open({
					money: this.money,
					target_type: 'recharge'
				})
				// let params = {
				// 	money: this.money,
				// 	// depositShow:true
				// 	// bank_id: this.account.id
				// }

				// this.$request('/member/withdraw/withdraw', params).then(res => {
				// 	// this.$msg(res.msg)
				// 	// setTimeout(() => {
				// 	// 	this.$u.route('/pages/my/balance/tixianLog')
				// 	// }, 1000)
				// })
			},

		}
	}
</script>

<style lang="scss">

</style>